﻿using Simple.Contracts.Models.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Simple.Contracts.Models
{
    internal class WeChatModel
    {
    }

    public class WeChatSessionDto
    {
        public string? NickName {  get; set; }

        public string? UnionId { get; set; }

        public string OpenId { get; set; }
    }

    public class WeChatZhaohuAppletLoginDto
    {
        /// <summary>
        /// 用户Token
        /// </summary>
        public string? userToken { get; set; }

        /// <summary>
        /// 当前用户信息
        /// </summary>
        public CurrentAccount? userInfo { get; set; }

        /// <summary>
        /// OpenId和UnionId
        /// </summary>
        public WeChatSessionDto userSessionInfo { get; set; }
    }

    public class WeChatZhaohuAppletRegisterInput
    {
        /// <summary>
        /// UnionId
        /// </summary>
        public string UnionId { get; set; }

        /// <summary>
        /// OpenId
        /// </summary>
        public string OpenId { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        public string Phone {  get; set; }

        /// <summary>
        /// 验证码
        /// </summary>
        public string Code {  get; set; }

        /// <summary>
        /// 昵称
        /// </summary>
        public string NickName { get; set; }
    }
}
